/* eslint-disable max-classes-per-file */
import { JsonProperty, Serializable } from '@/plugins/reflect-metadata';

@Serializable()
export default class TransOrderConfig {
  @JsonProperty('platformType')
    platformType: string = '';

  @JsonProperty('cardProductId')
    cardProductId: number = 0;

  @JsonProperty('faceValue')
    faceValue: number = 0;

  @JsonProperty('orderNoList')
    orderNoList: string[] = [];

  get body() {
    return {
      platformType: this.platformType,
      cardProductId: this.cardProductId,
      faceValue: this.faceValue,
      orderNoList: this.orderNoList,
    };
  }
}
